import request from '@/utils/request'

export function getAllSon(param) {
  return request({
    url: '/mesTechnology/GetAll',
    method: 'get',
    params: param
  })
}

export function getAllSonByRelation(param) {
  return request({
    url: '/mesTechnology/GetAllByRalation',
    method: 'get',
    params: param
  })
}
export function listSon(param) {
  return request({
    url: '/mesTechnology/list',
    method: 'get',
    params: param
  })
}

export function createSon(param) {
  return request({
    url: '/mesTechnology/save',
    method: 'post',
    data: param
  })
}

export function updateSon(param) {
  return request({
    url: '/mesTechnology/save',
    method: 'post',
    data:param
  })
}
export function deleteBatchSon(param) {
  let url ='/mesTechnology/deleteBatch'
  return request({
    url: url,
    method: 'delete',
    data: param
  })
}


